const INITIAL_STATE = {
	loading: false,
}

export default function global(state = INITIAL_STATE, action) {
	switch (action.type) {
		case 'global_updateState':
			return {
				...state,
				...action.data
			}
		case 'global_reset':
			return {
				loading: false,
			}
		default:
			return state
	}
}
